package cn.edu.lingnan.fruitshop.mapper;

import cn.edu.lingnan.fruitshop.pojo.Goodstable;
import cn.edu.lingnan.fruitshop.vo.SellerComments;
import cn.edu.lingnan.fruitshop.vo.SellerOrder;
import cn.edu.lingnan.fruitshop.vo.SellerOrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 张小凡
 * @since 2022-01-04
 */
public interface GoodstableMapper extends BaseMapper<Goodstable> {
    // 商家查询订单
    List<SellerOrder> sellerQueryOrder(int bossId);

    // 商家查看每款商品的购买详细
    List<SellerOrderDetail> sellerQueryOrderDetail(String goodId);

    // 商家查看自己店家的商品评论详情
    List<SellerComments> queryComments(int boss_id);
}
